<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> 
<h3>Compose a Message </h3> 
<div style="height: 15px;" class="questionnaire_submit_button"></div>
<div>
	<form:form action="javascript:void(0)" commandName="messageForm"
		dojoType="dijit.form.Form" id="sendMessageForm" >
		<table class="form_table">
			<tr>
				<td>To</td>
				<td>
				<c:out value="${displayName}"></c:out> 
				
				<input type='hidden' name='toUser' value="${messageForm.toUser }" required="true"	></td>
			</tr>
			<tr>
				<td>Subject</td>
				<td><input type='text' name='subject' value='' required="true" placeholder="Subject"
					dojoType="dijit.form.ValidationTextBox" missingMessage=""></td>
			</tr>
			<tr>
				<td>Message</td>
				<td><textarea id="textarea2" name="body" data-dojo-type="dijit.form.SimpleTextarea" rows="4" cols="50" style="width:auto;"></textarea></td>
			</tr>
			<tr>
				<td colspan="2">
					<button style="margin-left: 60px; margin-top: 20px;"  type="submit" name="submit" value="submit"class="ui-action-tag action-primary"><span class="ui-action"><span class="ui-action-content">Submit</span></span></button>
				</td>
			</tr>
		</table>
	</form:form>
</div>